﻿using SXICE.Core.Domains;
using SXICE.Core.Models;
using SXICE.Core.Models.Search;
using System;
using System.Collections.Generic;
using System.Text;

namespace SXICE.IRepository
{
    /// <summary>
    /// 权限菜单仓储接口
    /// </summary>
    public interface IMenuRepository
    {
        /// <summary>
        /// 获取所有信息
        /// </summary>
        /// <param name="pageListQuery">条件查询模型</param>
        /// <returns></returns>
        ReturnPageListResult<Menu> Search(PageListQuery<RecordSearchModel> pageListQuery);

        /// <summary>
        /// 获取所有信息
        /// </summary>
        /// <returns></returns>
        ReturnResult<List<Menu>> Search();

        /// <summary>
        /// 删除对于Id菜单
        /// </summary>
        /// <param name="id">当前删除菜单的Id</param>
        /// <returns></returns>
        ReturnResult<bool> Delete(int id);

        /// <summary>
        /// 插入菜单
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        ReturnResult<bool> InsertOne(Menu obj);
    }
}